virtual void use(int pic=-1,int textunit=0)=0
Parameter | Type | Description |
---|---|---|
pic | int | picture index to select |
textunit | int | texture unit to select |
None
This virtual function selects a picture to be used in the specified texture unit. The texture unit remains selected and active after the call. Calling this function with pic=-1 will disable texturing in the specified texture unit. The number of texture units available is at the ntextureunits global variable.